package com.blog.Bard.base.service;

import java.util.List;
import java.util.Map;

import com.blog.Bard.base.pojo.BardMenu;
import com.blog.Bard.common.service.BaseService;
import com.blog.Bard.common.util.Pager;

public interface BardMenuService extends BaseService{
	
	/**
	 * 获取左侧菜单
	 * @return
	 * @throws Exception
	 */
	List<Map<String,Object>> getMenuList() throws Exception;
	
	/**
	 * 获取菜单列表
	 * @param params
	 * @param pageNo
	 * @param pagesize
	 * @return
	 * @throws Exception
	 */
	Pager getMenuPager(Map<String,Object> params, int pageNo, int pagesize) throws Exception;
	
	/**
	 * 	菜单管理树数据
	 * @return
	 * @throws Exception
	 */
	List<Map<String, Object>> getMenuTree() throws Exception;
	
	/**
	 * 根据ID查找
	 * @param id
	 * @return
	 * @throws Exception
	 */
	BardMenu getOneById(Integer id) throws Exception;
	
	/**
	 * 查找所有一级菜单
	 * @return
	 * @throws Exception
	 */
	List<BardMenu> getParentMenuList() throws Exception;

	/**
	 * 	保存菜单
	 * @param t
	 * @throws Exception
	 */
	void save(BardMenu t) throws Exception;

	/**
	 * 	删除菜单
	 * @param id
	 * @throws Exception
	 */
	void del(Integer id) throws Exception;
	
}
